package com.hongye.manager.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.manager.vo.GroupVo;
import com.hongye.manager.mapper.GroupMapper;
import com.hongye.manager.service.GroupService;
import org.springframework.stereotype.Service;

@Service
public class GroupServiceImpl extends ServiceImpl<GroupMapper, GroupVo> implements GroupService {

    @Override
    public Page<GroupVo> getAll(Page<GroupVo> page) {
        return page.setRecords(this.baseMapper.getAll(page));
    }

    @Override
    public void update(GroupVo groupVo) {
        int i = baseMapper.updateById(groupVo);
    }
}
